interface FetchManagedClassListAPIParams {
  page: string
  limit: string
}

interface FetchManagedClassListAPIResData {
  code: number
  msg: string
  time: string
  data: {
    data: Class[]
    current_page: number
    total: number
    per_page: number
    last_page: number
  }
}

/**
 * @description 分页获取管理人员管理的班级的列表数据，用于查看留言
 */
export function fetchManagedClassListAPI(params: FetchManagedClassListAPIParams, token: string) {
  return httpInstance.get<FetchManagedClassListAPIResData, FetchManagedClassListAPIParams>(
    '/api/message/manageclasslist',
    { params, headers: { token } },
  )
}
